<?php 
// Lay cac thong so cau hinh chung
include "../../app_global.php";
// Lay cac hang so dung chung
include "../../const.php";
// Ket noi vao Database
include "../../connect.php";
// Ket noi vao Database bang ADO
include "../../connect_ado.php";
// Ham thuc hien lay ten file va hien thi noi dung
include "../../isa-lib/isa-function/isa_public_function.php";
// Kiem tra NSD da login hay qua timeout chua
include "../../test_login.php";
// Khoi tao cac bien session de luu quyen thuc hien tren cac modul, function cua NSD hien thoi
include "../../init_session.php";
// Lay cac thong so cau hinh rieng cho chuc nang nay
include "app_local.php";
// Lay cac hang so cua chuc nang nay
include "const.php";
// Lay cac hang so cua modul nay
include "../recordtype/const.php";
// Lay cac ham cua ung dung nay
include "../../onegate_function.php";
// Kiem tra che do hien thi trang
if (!isset($_REQUEST['modal_dialog_mode'])) {
	include "../../dsp_header.php";
}else{
	include "../../dsp_modal_dialog_header.php";
}?>
<script src="../../isa-lib/isa-js/isa_util.js"></script>
<script src="js_worktype.js"></script>
<script src="../recordtype/js_enduser.js"></script><?php
//echo $fuseaction . '<br>';
switch($fuseaction){
 	 case "DISPLAY_SINGLE_WORKTYPE";
	 	include "qry_all_recordtype.php";
		include "qry_single_worktype.php";//////////////////////////
		include "qry_all_worktype_recordtype.php";	 	
		include "qry_all_attach_file.php";
		include "dsp_single_worktype.php";	
		break;
	 case "DISPLAY_ALL_WORKTYPE";		
		include "qry_all_worktype.php";
		include "dsp_all_worktype.php";
		break;
	 case "UPDATE_WORKTYPE"; 		
		include "qry_all_recordtype.php";/// nieuvv	210508	
		include "qry_all_worktype_recordtype.php";	// nieuvv
		include "act_update_worktype.php";
		break;
	 case "DELETE_WORKTYPE";
		include "act_delete_worktype.php";
		break;
	default: 
		include "qry_all_worktype.php";
		include "dsp_all_worktype.php";
		break;
}
include "../../disconnect.php";
if (!isset($_REQUEST['modal_dialog_mode'])) {
	include "../../dsp_footer.php";
}else{
	include "../../dsp_modal_dialog_footer.php";
}?>